<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动的介绍</title>
    <link rel="stylesheet" href="css/reset.css">
    <style type="text/css">
        div{
            width: 100px;
            height: 150px;
        }
        .box1{
            background-color: lightyellow;
        }
        .box2{
            background-color: lightgreen;
        }
    </style>
</head>
<body>
    <!-- none left right inherit -->
     <div class="box1"></div>
     <div class="box2"></div>
</body>
</html>